package gui.popupmenu;

import gui.image.ImagePanel;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import util.Clipboard;

/**
 *
 * @author Quân
 */
public class CutMouseAdaptor extends MouseAdapter {

    private ImagePanel imagePanel;

    public CutMouseAdaptor(ImagePanel imagePanel) {
        this.imagePanel = imagePanel;
    }

    @Override
    public void mouseReleased(MouseEvent e) {
        util.Clipboard.getInstance().setData(imagePanel, Clipboard.CUT);
    }
}
